import { createApp } from "vue";
import App from "./App.vue";
import router from "./router"; //路由
import store from "./store"; //状态管理器
import dayjs from "dayjs";

import "normalize.css";
import "@/styles/base.scss";
import "element-plus/es/components/message/style/css";
//element puls的一个提示信息 的样式
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

app.use(router);

app.use(store);

app.use(dayjs);

app.mount("#app");
